<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script src="http://malsup.github.com/jquery.form.js"></script> 
	<script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script> 
<script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"></script> 
  </head>

<script type="text/javascript">
		$(document).ready(function(){
 		
			$("#password").keydown(function(){ 
				event.keyCode==13 && $("input[@type='submit']")[0].click(); 
				});
			 
				$(function() {
					var availableTags = [
						"admin",
						"kangzz",
						"zhangting",
						"test",
						"sdjasdjaod"
					];
					$( "#username" ).autocomplete({
						source: availableTags
					});
				});
		});
		


    </script>
 
  <body><%--
    This is my JSP page. <br>
    <table>
    <form action="/hxbankas/j_spring_security_check" id="form1" name="form1" method="post">
    <tr>
    <td>
    	<label><s:text name="lable.login.username"/></lable><input type="text" size="10" id="username" name="j_username">
    </td>
    </tr>	
    <tr>
    <td>
    	<label><s:text name="label.login.password"/></lable><input type="password" size="10" id="password" name="j_password">
    </td>
    </tr>
    <tr>
    --%><td>
    	<br/> <input type="submit" size="10" id="submit1"  value="<s:text name="lable.login.submit"/>">
    </td>
    </tr>
    </form>
    </table>
  </body>
</html>
